<% if $Format == 'PDF' %>
	<link rel="stylesheet" type="text/css" href="site/css/OrderPackageTemplate.css" />
<% else %>
	<link rel="stylesheet" type="text/css" href="/site/css/OrderPackageTemplate.css" />
<% end_if %>
<div id="order-package">
    <div id="header"><%t OrderPackageTemplate.ss.ORDER_DETAILS "Order Details" %></div>
    <div id="identity">
        <div id="address">
            <p><strong>$SiteConfig.CompanyName</strong></p>
            <p>$SiteConfig.FullAddress</p>
            <% if $SiteConfig.CompanySalesEmail %>
            <p>$SiteConfig.CompanySalesEmail</p>
            <% end_if %>
            <% if $SiteConfig.CompanyPhone %>
            <p>$SiteConfig.CompanyPhone</p>
            <% end_if %>
        </div>
        <div id="logo">
            <% if $SiteConfig.CompanyLogo %>
                <img src="$SiteConfig.CompanyLogo.SetHeight(100).URL" alt="logo" />
            <% end_if %>
        </div>
    </div>
    <div style="clear:both"></div>
    <br />
    <div id="customer">
        <div id="customer-title">
            <p><strong><u><%t OrderPackageTemplate.ss.BILLING_TO "Billing To" %></u></strong></p>
            $BillingAddress.TemplateHTML
        </div>
       	<div id="meta">
	        <table>
	            <tr>
	                <td class="meta-head"><%t OrderPackageTemplate.ss.ORDER_ID "Order ID" %></td>
	                <td>#$ID ($Status.Title)</td>
	            </tr>
	            <tr>
	
	                <td class="meta-head"><%t OrderPackageTemplate.ss.DATE "Date" %></td>
	                <td>$Created.Nice</td>
	            </tr>
	            <tr>
	                <td class="meta-head"><%t OrderPackageTemplate.ss.PRINTED_ON "Printed on" %></td>
	                <td>$PrintTime</td>
	            </tr>
	        </table>
        </div>
    </div>
    <div style="clear:both"></div>
    <br />
    <div id="items">
	    <table>
	        <tr>
	            <td class="item-head item-name"><%t OrderPackageTemplate.ss.ITEM "Item" %></td>
	            <td class="item-head qty"><%t OrderPackageTemplate.ss.QUANTITY "Quantity" %></td>
	            <td class="item-head bv"><%t OrderPackageTemplate.ss.BV "BV" %></td>
	            <td class="item-head price"><%t OrderPackageTemplate.ss.PRICE "Price ({currency})" currency=$PaymentReceipt.Currency %></td>
	        </tr>
	        <tr>
	            <td class="item-name">
	                $Title
	            </td>
	            <td class="qty">1</td>
	            <td class="bv">$BV.Nice</td>
	            <td class="price">$Price.Nice</td>
	        </tr>
	        <tr>
	            <td colspan="3" class="total-line"><%t OrderPackageTemplate.ss.SUB_TOTAL "Sub Total" %></td>
	            <td class="total-value">$Price.Nice</td>
	        </tr>
	        <% if $TotalTax > 0 %>
	        <tr>
	            <td colspan="3" class="total-line">$TaxCode ($TaxRate%)</td>
	            <td class="total-value">$TotalTax.Nice</td>
	        </tr>
	        <% end_if %>
	        <tr>
	            <td colspan="3" class="total-line"><%t OrderPackageTemplate.ss.GRAND_TOTAL "Grand Total" %></td>
	            <td class="total-value">$Price.Nice</td>
	        </tr>
	    </table>
    </div>
    <div style="clear:both"></div>
    <br />
    <% if $PaymentReceipt %>
    	$PaymentReceipt.FullDetailHTML
    <% end_if %>
    <div id="terms">
        <p><%t OrderPackageTemplate.ss.TERM "This is a computer generated statement, no company stamp or signature is required. We strongly encourages our customers to print this invoice out only when you need it. Save Trees, Save Earth." %></p>
    </div>
</div>
